<!-- $Id: goods_type_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->

{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,validator.js"}

<div class="main-div">
  <form action="" method="post" enctype="multipart/form-data" name="theForm" onsubmit="return validate();">
    <table cellspacing="1" cellpadding="3" width="100%">			 <tr>        <td class="label">{$lang.technology_type}:</td>        <td>        	<input name="technology_type" type="radio" value="0" onclick="brand()" {if $technology.technology_type eq 0}checked{/if}>品牌        	<input name="technology_type" type="radio" value="1" onclick="commen()" {if $technology.technology_type eq 1}checked{/if}>通用        </td>      </tr>
      <tr id="brand">
        <td class="label">{$lang.brand}:</td>
        <td><select name="brand_id">						{foreach from=$brand item=info_type}									{if $info_type.brand_id eq $technology.brand_id}									<option value="{$info_type.brand_id}" selected="true">{$info_type.brand_name}										{else}									<option value="{$info_type.brand_id}">{$info_type.brand_name}									{/if}									</option>						{/foreach}					</select>
        </td>
      </tr>      			 <tr>        <td class="label">{$lang.cat_type}:</td>        <td>        	<input name="cat_type" type="radio" value="0" onclick="material()" {if $technology.cat_type eq 0}checked{/if}>材料        	<input name="cat_type" type="radio" value="1" onclick="technology()" {if $technology.cat_type eq 1}checked{/if}>科技        </td>      </tr>       <tr id='material' style="display: none;">        <td class="label" >{$lang.material_cat}:</td>        <td>        	<input name="material_cat" type="radio" value="1" {if $technology.technology_cat eq 1}checked{/if}>大底材料        	<input name="material_cat" type="radio" value="2" {if $technology.technology_cat eq 2}checked{/if}>中底材料        	<input name="material_cat" type="radio" value="3" {if $technology.technology_cat eq 3}checked{/if}>鞋面材料        	<input name="material_cat" type="radio" value="4" {if $technology.technology_cat eq 4}checked{/if}>其他材料        </td>      </tr>      <tr id='technology' style="display: none;">        <td class="label">{$lang.technology_cat}:</td>        <td>        	<input name="technology_cat" type="radio" value="1" {if $technology.technology_cat eq 1}checked{/if}>大底科技        	<input name="technology_cat" type="radio" value="2" {if $technology.technology_cat eq 2}checked{/if}>中底科技        	<input name="technology_cat" type="radio" value="3" {if $technology.technology_cat eq 3}checked{/if}>鞋面科技        	<input name="technology_cat" type="radio" value="4" {if $technology.technology_cat eq 4}checked{/if}>其他科技        </td>      </tr>			<tr>        <td class="label">{$lang.technology_name}:</td>        <td><input type="text" name="technology_name" value="{$technology.technology_name|escape}"  size="40" />{$lang.require_field}       </td>      </tr>      <tr>        <td class="label">{$lang.technology_read}:</td>        <td><textarea name="technology_read" rows="5" cols="42">{$technology.technology_read|escape}</textarea></td>      </tr>      <tr>        <td class="label">{$lang.technology_picture}:</td>        <td>        	<input type="file" name="technology_picture">        	<input name="file_url" type="hidden" value="{$technology.url_picture}" size="30" maxlength="255">        </td>      </tr>      <tr>        <td class="label"></td>        <td>        	{if $technology.technology_picture neq ""}    			<a href="{$technology.technology_picture}" target='_blank'><img src="{$technology.technology_picture}"  width="720" height="480"/></a><br />    			(图片规格统一为：720px * 480px)    		{/if}        </td>      </tr>
      <tr align="center">
        <td colspan="2">
          <input type="hidden" name="technology_id" value="{$technology.technology_id}" />
          <input type="submit" value="{$lang.button_submit}" class="button" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
          <input type="hidden" name="act" value="{$form_act}" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">
<!--
{literal}
onload = function() {
  document.forms['theForm'].elements['series_name'].focus();
  startCheckOrder();
}{if $technology.technology_type eq 0}		brand();		{else}		commen();{/if}{if $technology.cat_type eq 0}		material();		{else}		technology();{/if}
function brand(){	document.getElementById('brand').style.display="";}function commen(){	document.getElementById('brand').style.display="none";}function material(){	document.getElementById('material').style.display="";	document.getElementById('technology').style.display="none";}function technology(){	document.getElementById('material').style.display="none";	document.getElementById('technology').style.display="";}
function validate()
{
  var validator = new Validator('theForm');
  validator.required('technology_name', '材料/技术名称不能为空');

  return validator.passed();
}
{/literal}  
//-->
</script>

{include file="pagefooter.htm"}
